﻿<%@ Page Title="" Language="C#" MasterPageFile="frmMaestra.Master" AutoEventWireup="true" CodeBehind="frmMantenedorHabitacion.aspx.cs" Inherits="SisHotel.frmMantenedorHabitacion" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">Habitaci&oacute;n</h1>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-8 col-lg-offset-2">
            <div class="panel panel-default">
                <div class="panel-heading">
                    Registro
                </div>
                <div class="panel-body">
                    <div class="row">
                        <div class="col-lg-12">
                            <div class="form-group">
                                <label>ID </label>
                                <asp:Label ID="lblID" runat="server" Text="0" width="50%"></asp:Label>
                            </div>
                            <div class="form-group">
                                <label>Num. Habitaci&oacute;n</label>
                                <asp:TextBox ID="txtNumHabitacion" runat="server" class="form-control" width="50%"></asp:TextBox>
                            </div>
                            <div class="form-group">
                                <label>Tipo Habitaci&oacute;n</label>
                                <asp:DropDownList ID="ddlTipoHabitacion" runat="server" class="form-control" width="50%"></asp:DropDownList>
                            </div>
                            <div class="form-group">
                                <label>Piso</label>
                                <asp:TextBox ID="txtPiso" runat="server" class="form-control" width="50%"></asp:TextBox>
                            </div>
                            <div class="form-group">
                                <label>Capacidad</label>
                                <asp:TextBox ID="txtCapacidad" runat="server" class="form-control" width="50%"></asp:TextBox>
                            </div>
                            <div class="form-group">
                                <label>Estado</label>
                                <asp:TextBox ID="txtEstado" runat="server" class="form-control" width="50%"></asp:TextBox>
                            </div>
                            <div class="form-group">
                                <label>Imagen Habitacion</label>
                                <asp:FileUpload ID="fuImagen" runat="server" />
                            </div>
                            <div align="right">
                                <asp:Button ID="btnAgregar" runat="server" Text="Agregar" class="btn btn-default" OnClick="btnAgregar_Click" />
                                <asp:Button ID="btnGuardar" runat="server" Text="Guardar" class="btn btn-default" OnClick="btnGuardar_Click" />
                                <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" class="btn btn-default" OnClick="btnCancelar_Click" />
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-lg-12" style="text-align:center;">
                            <asp:Label ID="lblMensaje" runat="server" Text="" ForeColor="Red"></asp:Label>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-lg-12">
            <asp:GridView ID="gvDatos"  runat="server" class="table table-striped table-bordered table-hover" AutoGenerateColumns="False" OnRowDeleting="gvDatos_RowDeleting" OnSelectedIndexChanged="gvDatos_SelectedIndexChanged">
                <Columns>
                    <asp:BoundField DataField="IDHABITACION" HeaderText="ID" />
                    <asp:BoundField DataField="NUMEROHABITACION" HeaderText="Nro Habitacion" />
                    <asp:BoundField DataField="PISOHABITACION" HeaderText="Piso" />
                    <asp:ImageField DataImageUrlField="IMAGEN" HeaderText="Imagen">
                        <ControlStyle Height="40px" Width="40px" />
                    </asp:ImageField>
                    <asp:BoundField DataField="IDTIPOHABITACION" HeaderText="IDTIPOHABITACION" />
                    <asp:BoundField DataField="ESTADO" HeaderText="ESTADO" />
                    <asp:BoundField DataField="NUMEROHABITACION" HeaderText="NUMEROHABITACION" />
                    <asp:BoundField DataField="TIPOEDICION" HeaderText="Tipo Edicion" />
                    <asp:CommandField SelectText="Editar" ShowSelectButton="True" />
                    <asp:CommandField SelectText="Eliminar" ShowDeleteButton="True" />
                </Columns>
            </asp:GridView>
        </div>
    </div>
   <!-- 
       <asp:ObjectDataSource ID="dsHabitaciones" runat="server" SelectMethod="ListarHabitaciones" TypeName="CapaDatos.datHabitacion"></asp:ObjectDataSource>
    -->
</asp:Content>
